home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / dev / misc / libx11inc.lha / X11 / Xm / Command.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-13  |  1.9 KB  |  76 lines

  1. /* 
  2.  * (c) Copyright 1989, 1990, 1991, 1992 OPEN SOFTWARE FOUNDATION, INC.
  3.  * ALL RIGHTS RESERVED
  4. */ 
  5. /*   $RCSfile: Command.h,v $ $Revision: 1.11 $ $Date: 92/05/14 12:48:46 $ */
  6. /*
  7. *  (c) Copyright 1989, DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS. */
  8. /*
  9. *  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  10. #ifndef _XmCommand_h
  11. #define _XmCommand_h
  12.  
  13. #include <Xm/Xm.h>
  14.  
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18.  
  19. /* Class record constants */
  20.  
  21. externalref WidgetClass xmCommandWidgetClass;
  22.  
  23. typedef struct _XmCommandClassRec * XmCommandWidgetClass;
  24. typedef struct _XmCommandRec      * XmCommandWidget;
  25.  
  26.  
  27. #ifndef XmIsCommand
  28. #define XmIsCommand(w)  (XtIsSubclass (w, xmCommandWidgetClass))
  29. #endif
  30.  
  31.  
  32.  
  33. /********    Public Function Declarations    ********/
  34. #ifdef _NO_PROTO
  35.  
  36. extern Widget XmCreateCommand() ;
  37. extern Widget XmCommandGetChild() ;
  38. extern void XmCommandSetValue() ;
  39. extern void XmCommandAppendValue() ;
  40. extern void XmCommandError() ;
  41.  
  42. #else
  43.  
  44. extern Widget XmCreateCommand( 
  45.                         Widget parent,
  46.                         String name,
  47.                         ArgList al,
  48.                         Cardinal ac) ;
  49. extern Widget XmCommandGetChild( 
  50.                         Widget widget,
  51. #if NeedWidePrototypes
  52.                         unsigned int child) ;
  53. #else
  54.                         unsigned char child) ;
  55. #endif /* NeedWidePrototypes */
  56. extern void XmCommandSetValue( 
  57.                         Widget widget,
  58.                         XmString value) ;
  59. extern void XmCommandAppendValue( 
  60.                         Widget widget,
  61.                         XmString value) ;
  62. extern void XmCommandError( 
  63.                         Widget widget,
  64.                         XmString error) ;
  65.  
  66. #endif /* _NO_PROTO */
  67. /********    End Public Function Declarations    ********/
  68.  
  69.  
  70. #ifdef __cplusplus
  71. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  72. #endif
  73.  
  74. #endif /* _XmCommand_h */
  75. /* DON'T ADD ANYTHING AFTER THIS #endif */
  76.